package com.jiyun.service;

import com.jiyun.model.Train;
import com.jiyun.model.TrainDto;
import com.jiyun.model.TrainGame;
import com.jiyun.model.TrainPercent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author 朱庆辉
 * @Date 2023/7/28 16:05
 * @Email 1018276870@qq.com
 */
@FeignClient("day15-zhuqinghui-train-dev")
public interface TrainService {
    @RequestMapping("train/findAll")
    public List<Train> findAll(TrainDto trainDto);

    @RequestMapping("train/findById")
    public Train findById(@RequestParam(value = "id") Integer id);

    @RequestMapping("Percent/findByPercent")
    public List<TrainPercent> findByPercent(@RequestParam(value = "id") Integer id);

    @RequestMapping("trainGame/findTrainGameId")
    public List<TrainGame> findTrainGameId(@RequestParam(value = "id") Integer id);
}
